package bog

class IndexController {

    def index() {
        [
                openedThreads : Thread.findAllWhere([status: ThreadStatus.OPEN]),
                solvedThreads : Thread.findAllWhere([status: ThreadStatus.SOLVED]),
                closedThreads : Thread.findAllWhere([status: ThreadStatus.CLOSED])
        ]
    }
}
